import { _decorator, Component, Node } from 'cc';
import { EventEnum, ItemStatusEnum, ItemTypeEnum } from '../Enum';
import EventManger from '../RunTime/EventManager';
const { ccclass, property } = _decorator;

@ccclass('RendorManager')
export abstract class RendorManager extends Component {
    protected onLoad(): void {
        EventManger.Instance.on(EventEnum.Rendor, this.rendor, this)
    }

    protected onDestroy(): void {
        EventManger.Instance.off(EventEnum.Rendor, this.rendor,this)
    }

    protected start(): void {
        this.rendor()
    }

    abstract rendor():void
}